<style>
    #hazardExamineBaseInfoDetail-edit .layui-input-block{
        margin-left: 145px;
    }
    #hazardExamineBaseInfoDetail-edit .layui-form-label {
        width: 110px;
    }
    #hazardExamineBaseInfoDetail-edit .layui-panel{
        margin-top: 10px;
    }
</style>
<div class="layui-fluid" id="hazardExamineBaseInfoDetail-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="hazardExamineBaseInfoDetail-edit-form">
            <!--            检查发布信息-->
            <fieldset class="layui-elem-field">
                <legend id="base_field">安全检查信息</legend>
                <div class="layui-field-box " id="box-detail">
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label layui-form-label-detail">公司名称：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${hazardExamine.tenantName}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label layui-form-label-detail ">检查类别：</label>
                                <div th:switch="${hazardExamine.examineCategory}">
                                    <div th:case="1" class="layui-input-block layui-input-block-html">日常</div>
                                    <div th:case="2" class="layui-input-block layui-input-block-html">专项</div>
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label layui-form-label-detail ">检查类型：</label>
                                <div th:switch="${hazardExamine.examineType}">
                                    <div th:case="1" class="layui-input-block layui-input-block-html">公司检查</div>
                                    <div th:case="2" class="layui-input-block layui-input-block-html">部门检查</div>
                                    <div th:case="3" class="layui-input-block layui-input-block-html">车间检查</div>
                                    <div th:case="4" class="layui-input-block layui-input-block-html">班组检查</div>
                                    <div th:case="5" class="layui-input-block layui-input-block-html">项目检查</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label layui-form-label-detail">检查主题：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${hazardExamine.examineTitle}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label layui-form-label-detail">开始时间：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${hazardExamine.startDate}">
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label layui-form-label-detail ">结束时间：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${hazardExamine.endDate}">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </fieldset>


            <!--                         公司、综合检查-->
            <fieldset id="company_field" class="layui-elem-field febs-hide">
                <legend >分组信息</legend>
                <div class="layui-field-box" id="company_box">
                    <div class="layui-panel layui-panel-company" id="panel_company0">
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <label class="layui-form-label">检查人员：</label>
                                        <div class="layui-input-block">
                                            <table lay-filter="groupUserTable_company" id="groupUserTable_company" lay-data="{id: 'groupUserTable_company'}"></table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
            <!--                        部门、车间、班组检查-->
            <fieldset id="dept_field" class="layui-elem-field febs-hide">
                <legend >分组信息</legend>
                <div class="layui-field-box" id="dept_box">

                </div>
            </fieldset>
            <!--                        项目检查-->
            <fieldset id="project_field" class="layui-elem-field febs-hide">
                <legend >分组信息</legend>
                <div class="layui-field-box" id="project_box">

                </div>
            </fieldset>

        </form>
    </div>
</div>
<div style="height: 45%" class="febs-container" id="baseCautionaryLesson-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="baseCautionaryLesson-edit-form" style="padding-top: 30px">
            <fieldset class="layui-elem-field">
                <legend id="lesson_field">学习情况</legend>
                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">：</label>
                    <div class="layui-input-block">
                        <input type="text" name="cautionaryLessonId" class="layui-input">
                        <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                               maxlength="32" >
                        <input type="text" name="cautionarySourceId" autocomplete="off" class="layui-input"
                               maxlength="32" >
                        <input type="text" name="cautionaryDeptId" autocomplete="off" class="layui-input"
                               maxlength="32" >
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label">学习时间：</label>
                            <div class="layui-input-block">
                                <input type="text" name="studyDate" id="studyDate" lay-verify="datetime"
                                       placeholder="请输入时间" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label febs-form-item-require">学习备注：</label>
                            <div class="layui-input-block">
                                <textarea name="studyRemark" class="layui-textarea" maxlength="900" placeholder="请输入备注" lay-verify="required"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label febs-form-item-require">警示状态：</label>
                            <div class="layui-input-block">
                                <select name="status" id="status" lay-search="">
                                    <option value="0">待学习</option>
                                    <option value="1">已学习</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label">附件上传：</label>
                            <div class="layui-input-block" id="uploadBtn">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item febs-hide">
                    <button class="layui-btn" lay-submit="" lay-filter="baseCautionaryLesson-edit-form-submit" id="submit"></button>
                    <button type="reset" class="layui-btn" id="reset"></button>
                </div>
            </fieldset>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var hazardExamineData = [[${hazardExamine}]];
    var baseCautionaryLessonData = [[${baseCautionaryLesson}]];
</script>
<script th:src="@{/febs/js/base/baseCautionaryLesson/hazardExamineBaseInfoDetailForLesson.js(v=1)}"></script>